<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ResponseModel extends Model
{
    protected $table = 'responses';

    public $timestamps = false;

    protected $primaryKey = 'id';

    protected $fillable = ['response', 'code', 'success'];

    public function command()
    {
        return $this->hasOne(CommandsModel::class, 'response_id', 'id');
    }
}
